package com.ynny.one_dimensional_array01;

import java.util.Scanner;

public class ArrayExample01 {

    public static void main(String[] args) {
        //{"Monday","Tuesday","Wednesday",
        // "Thursday",
        // "Friday","Saturday","Sunday"}
      String[] weeks = new String[7];
      weeks[0] = "Monday";
      weeks[1] = "Tuesday";
      weeks[2] = "Wednesday";
      weeks[3] = "Thursday";
      weeks[4] = "Friday";
      weeks[5] = "Saturday";
      weeks[6] = "Sunday";

      String[] weeks2 = {"Monday",
              "Tuesday","Wednesday","Thursday",
         "Friday","Saturday","Sunday"};

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入1-7");
        int choose = scanner.nextInt();
        if (choose == 1){
            System.out.println(weeks2[choose - 1]);
        }else if (choose == 2){
            System.out.println(weeks2[choose - 1]);
        }
        //...省略



    }
}
